added maxYWidth
new debug command
calculationV2 implementetd (needs testing)