removed unused variable
adjusted logging+
fixxed PSR-2 coding standarsd