add amd support
assign to window object as well as exporting in AMD
documentation for AMD modules added to README.md
typos
release 0.3.10