improved logging and added easy support to run from gradle using 'gradle run -Pport=8999'