Fixed docs for API v3

+ ruby formatting for code

#50