Deletion and Insertion error checking added