more erlang grammar improvements