Make erg into a type
Merge pull request #1 from syamp/master

Make erg into a type