add Makefile with automatic docs generation
return appropriate status code when new record is created
add tests