added some documentation, test for nested routes, singularize resource names for _id fields