Some display and input beautifications and XML export implemented.
Fixed some export bugs and implemented XML import.