Rewriting signal handler, adding pid file support.
Changed error text
Merge pull request #35 from meeh420/master

Rewrite of signal handler, pid file