Update documentation

Fixed incorrect inline documentation and updated the README.