started terrible terrible work. Beginning to mesh old code with GUI