added comments and closed Scanners