Created javadoc for non trivial to understand functions of MainFragment
Merge pull request #52 from vreixo/issue50

Created javadoc for MainFragment