Fixed multiple instance bug

Added checking of a lock file stored in the users home directory