removed unneeded Printf's and added better comments