code quality

I rebased some stuff on my fork and ended up with these changes. Most of it is spelling (synchronous has an "h") and whitespace. But I also removed the 2 clone functions in favor of using [clone](https://www.npmjs.org/package/clone).