completed first pass of phonet implementation