Restructure

Complete restructure. Implementation will be in C++, UI will be in C#