Corrected ignored return values of scanf
added comments