Initial Commit after working on the project

MAJOR refractoring

Now onto fixing stuff and adding the proper licencing.