proper check for Erlang R16
Allow older Erlang versions
code comments for Erlang OTP version checks
Send log handler info to Erlang VM as errors
only print debug when compiled with -DDEBUG