Debugging and Checking

All backend files work. Still need to delete the debug function.