Added additional support for output. Changed scanner logic

only one scanner will ever be made from now on. a scanner starts
scanning at the first item every time it is made. every call to Scan
advances the scanner 1 line... that's why there has to be 1 scanner.