Some formatting changes. Added comments