The geometry of the plane of order nineteen and its application to error-correcting codes