minor changes
Restructured functions layout. Added more options. Cleaned up if statements.
Just an update before possible major changes
Made prototype, added more functions. Figured out the stupid 'this' shit.
Removed many functions that did similar things, added basae  functions with switch cases.
Ready to push to Master then Github
Merge branch 'dev'