Added docs for API, with command rake doc:rails