Updated readme
Added return where necessary and changed to error 404 if path not found