document refactor
implemented rule document and factored out some of the controls from grapheditpanel