Fixed major problems with grammar methods.
very buggy version.