Refactored code base

Renamed methods and variables.
Organized methods.
All code is now PEP 8 formatted.