Removing newline
Adding private function comments
Scoping vars to as inner as possible
Ternary magic
stack offset field no longer needs to be protected