made the padding outline of fragments little smaller, added comments on codes