improved graph creation algorithm. added settings page to the control panel (functionality not yet implemented).