Fixed and added stuff

Hello, In my previous pr I broke the routes, I have subsequently fixed them.

Additionally I have added some rspec specs and tools that hopefully will lead to a higher quality codebase.