adding function to showAchievements

+ some code cleaning
code cleanup (indenting)

* removing mixed indents