Use class name when inside of a module. Fixes #50
Merge pull request #51 from jonmorehouse/master

Use class name when inside of a module. Fixes #50