added configuration parameters and logging on file

Signed-off-by: Marco Milanesio <milanesio.marco@gmail.com>