Started splitting code into proper Python modules
Enabled debugging and optimizations
Doc updates