Changed The functionality a bit and added a GUI. The GUI was made with the Eclipse Swing-Windowbuilder