Removed maxlength limit from scanner, and implemented removecomments