fixed "done" command
initial testing underway. Will probably have to implement threading later.
fixed several issues, discovered several new ones. Implemented threading.
identified and fixed problems with resource-hogging. TODO: fix generate_file_table