Move API doc to readme and reformat