created version with new file format
merged simplestateviewer as master