another data cleaning step
improved printlines
flipped my subtraction by accident
changed around printlines and stack trace
spelling mistake
used macro instead of inline function definition