Cleaned up routes file, moved all debugging stuff to bottom