Split up code into header/source files