cleaned up API and added docstrings for the Grammar class
added docstrings for Result class
added docstrings for Node object