Add support for replace command

And improve documentation
Merge pull request #3 from tomap/master

adding support for replace command