Overhaul on the graphical interface

Key function don’t completely work and naming needs to be edited, but
the latter can be postponed until the graphical interface works fully.