Rearranged some logic. Added Gravatars for profile picture.