fixing spaces vs tabs and some console log adding
fix logging typo