added erlang mode