Fixing up documentation to the api