updated hacky localPathToFile param
removed finished TODOs and added unit6 function.
masterserverthread
masterserverthread
removed .close() statements
resolved merge conflicts