fix typo/invalid variable name referenced
update reference implementation to reflect new kwargs and python-requests api usage
added logging around exception and configurable wait time
updated documentation to reflect reference implementation