simplified exceptions
Merge pull request #92 from XeTK/singleinstance

simplified exceptions
Merge pull request #93 from SoftlySplinter/master

Removed unnecessary class
Fix indentation
Make sed replace all matches

Sed should *absolutely* replaceAll and not replace. @bugsduggan would really appreciate
it if people didn't introduce regressions in his code. Especially in a commit which
doesn't have anything to do with the sed plugin.

Fixes #94
Merge pull request #97 from bugsduggan/issue/94

Fix sed