Added logging -g flag

Fixed whitespace