added back the prints in scanner
deleted unused files and also added documenttions to the source files