Bug fixes, code cleanup

-Fixed an issue where the checkbox was being instantiated even thought
the checkbox was not in the layout anymore
-Resolved an apparent issue where the start button in ActivityMain.java
was being assigned to 'null' for no reason whatsoever (an issue with
R.java maybe?)
-Some code cleanup and optimization