Fully documented, fixed a bug in streaming requests, and made test functions with comments