Removed import statements

Also added a loop to check that the scanner is working