added prevention of multiple instances of the application running at the same time using a mutex