Some grammar revisions, also added documentation.