added unit tests, added .gitignore, added rebar.config