fixed a lot of fuckups made by previous programmer. Saned out a lot of comments. Aligned a lot of meaningless stuff. MAde a test build on Android. Need to clean this up properly