add Doc; handle older versions of Erlang where list_to_integer/2 needed erlang: prefix