two changes

  - corrected formatting in printed output
  - Added a method to fill a Vector<int>& with the scan headings
so classes outside of the scanner have an encapsulated way to get
the list of scanned headings.