Move `replace` to top where general functions are
Update documentation for accuracy
Merge branch 'documentation'
Version bump to 0.5.0