added bool parameter to skip token retrieval and modified class to use FileReader and ErrorReporter