Lots of things were wrong. Fixed them

Formatting, moved class vars to bottom, removed unused methods,
corrected/replaced documentation