make the library actually work in real life, woohoo!
Merge pull request #17 from codemix/total-refactor

Make the refactored library actually work.