Merge pull request #2 from bprodoehl/master

Add 'pregenerated' mode
Move helper functions up so we have forward reference.
Naming fixes.
Update packages.
0.3.2
Merge pull request #1 from chakrit/master

rebase