Update readme and add api specification.