Made more complications
reinventing indenting
additional changes to logging system