Fixed some small typos and clarified the documentation.