cleanup, minor fixes, improved generalisation, added remaining details to details pane