Fixed distance() now it passes test, and updated all error string outputs for preconditions A-D