updated readme
updated comments
added code to check for correct input integer