added working GUI to the program and new CFG rules