added mixin support
added singleton and statics support
moved code around
added comments, reorganized code
Merge pull request #2 from jmcriffey/develop

Mixins, singletons, and statics