Switched to BufferedSource for file input. Fixed text output.