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.