fix gruntfile to compile all files and directories in src/
update doc-gen and patterns/class to use same interface as patterns/decorator