Unit Tests

Changed the debugging to be in separate files.