diff converted to class based code

still  a minor error with the import/ draw mesh loop