Fix wrong closure. Related to #45.
Added a replace mode argument for multiple url input. Fixes #45.