Add compatibility with ActiveSupport 3
Add yardoc and better documentation