cleaned lines and added comments