added comments
deleted unnecessary print statement