Removed some functions which were beyond scope. Updated grammar.