DRY, move logic from rake to lib, build data if needed
Merge pull request #3 from JasonMWhite/master

DRY, move logic to lib, persist nn data if needed