fixed linting issues, multithreading (ongoing)