Clean
Added notes
Changed indentation, removed unnecessary declarations