Added extensible options
Added callback for failed reuest
Merge pull request #1 from znetstar/master

options + failure callback