Documentation, coide standards, refactoring

1. Documentation added.
2. Code standards (using single quotes where possible, three-digit version number)
3. Split function into two - one that gets the data, and one that does something with it.
4. Bumped version to 1.0.0-beta3.
Fix callback name
Merge pull request #1 from GaryJones/patch-1

Documentation, code standards, refactoring