Add parameter assert
Call failure block if the request is faulty
Merge pull request #7 from NSElvis/minor-improvements

Minor improvements