add enum() helper
add enum() test cases
fix github links
Merge pull request #1 from node-modules/enum

Enum create helper