Removed unnecessary printing and added comments where appropriate