Major restructure changes in code and start of score thread implementation