changes as demanded in description

Summary: see above

Test Plan: nothing

Reviewers: aschultz, druss

Subscribers: aschultz, druss, mkraemer

Differential Revision: https://review.tpip.net/D1680
cosmetics for nif dummies
inserted enif_make_badarg again
forgot the erlang api