errors fixed
Added logging component