add eunit test, rebar plugin, examples