Fix dialyzer errors.

ets:give_away/3 only returns true.
Add a guard expression when matching anything.
Add specs.
Merge pull request #1 from AeroNotix/master

Small fixes