Fully documented, fixed a bug in streaming requests, and made test funct...

...ions with comments