Added docstrings
Fixed some initialization bugs, added response logging
Added some basic tests