minor tweaks in pritnf information and remove a chunk of unecessary code