made MainActivity easier to read by fixing style errors and warnings
fixed styling issues in MainActivity and warnings
organized code in MainListAdapter and MainActivity
Merge pull request #222 from rjynn/master

organized code in MainListAdapter and MainActivity;fixed comments;fixed warnings