I tweaked a bit movement values and changed some variable names, I also added spectator "mode" (mode changing not implemented yet)
I have finished basic features of character controller and polished it quite a bit but there is a pair of missing features: walking up ladders, swiming