Changed the attach() and discover() methods to return a promise
Added minified version of the script