Bug fixes and improvements

* Fixes number alignment when
* Fixes g_continuous == False
* Improved handling fo python comments
* Improved code quality