Making the graphical Interface

Making the graphical interface and other stack classes and some bug
fixes.