-- Updated code and README, according to suggestions by 'mxcl', member of the PromiseKit project.