added some comments to code and played with animations for fragment transitions