handled undefined provider
refactored to comply to bono spec
Merge pull request #1 from reekoheek/master

Handling undefined provider and refactoring to comply to new bono specs