Added a build system. Changed the structure a lot.