Added all files, started implementing threading. Threading refactoring in specific branch