fixes and changes based on issue #2
Merge branch 'master' of https://github.com/tanelih/phonegap-bluetooth-plugin