Fixing lots of holes in type based enum detection.  Added tests for that.
Made a few refactors and added license file to project.
Increasing version number to 0.3.1