remove trailing whitespaces
fix minor error in comment

last and first were swiched on diff debug info