completed gui for pattern editor, scelliton functions in place also, mostly there.