Erlang support

Add initial support for erlang #46