Add div by zero checking (probably there's a better way), switch to println! for forward compat w/ 0.10-pre