changed to fragments
updated android version
corrected/added more comments.