addded the -v option for verbose logging output
wrote a trial application class, it stops correctly but starts wrongly atm.