Comments added and IO error in main removed
Comments added and IO error in main removed