output and added plate appeareances (1st draft) and cleaned up wasted code