Added subclass function
Added more cofeescript tests and docs