Added comments, Prettified Code