Multithreading works; refactored route file; created file writer; added mock objects