added rebar.config to protect from compile warnings
verify that function has returned proper value