Made spacing consistent and added comments