V1.1: refactor usage
V1.2: Added Check for empty command line parameter
V1.3: added pid file handling