Separated out files into header and code, removed an object file, and fixed errors