Fix reference to 'self' left over from a refactor, plus linting.
Added a convenience 'replace' command (a wrapper around 'remove' and 'snapshot').
Merge pull request #37 from nealtodd/replace

Adds a Replace command