Improved documentation and changed error function to always log