small change for waylay service
refactored bn.js and removed code which is not any more in use
merge