fixed a lot of typo's and stuff like making something a private or local