Added missing newline
Added const argument modifier
Modified debug prints due to last change