Fixed amd wrapper
Added support for Collection.add