Did some GUI coding and added a public static void main for testint, mainwindow seems do be almost okay already