split code into screen-locking and arg-parsing functions
added daemon-mode which locks upon detection of file-semaphore