added GUI and chain, updated diagrams