Altered Carbon

The biggest question i have is how does the stack work with the brain. Does it replace it, overwrite it? Is there the original consciousness still in there trapped in a body it cant control.