Fixes error not creating new resources

* Theres a new function that makes the correct POST request
* Adds more closures to clarify the stream