First official version. Refactored to PEP8 and simplified some things
Update v1.1 after restructuring