Added comments removed unused function

and fixed a massive spelling error