Code cleaning, add version option

Also correction some horrific spelling mistakes.
Correcting incorrect pid file handling
Pid file are now sets in user repository.