Edited Error_Handler and rearranged diagramms.