Adding endpoint for reservation, cleaning up a little code