refactored the initialization of file parsing. added method call locations to testing output.