correcting some issues, adding 'UMD' type boilerplate for better CommonJS/AMD compatibility
updating README with *lots* of documentation