Complete rewrite

- removed support for ST 2
- removed folding commands
- simplified code
- PEP8 compatibility