finish adding grammar as optional argument, add new route for phonemes/allophones