splitting everything into cpp files. now it all should work.