Warnings/bugs listed by Ali fixed, setprecision (5) in the case of plane
drawing became setprecision (3).