Fixed the source document offset calculation used in debugging;
Transformed the custom BufferedReader into a stripped-down
CountingLineReader good for one purpose