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