Changed the visibility of some private functions

Notice that now '=>' are '->'. This is the way we define a private function in coffeescript. I did it because I read some comments which said they should be private functions.

I tested it and it works.