Added Compile window, put compiling into a thread and started adding compile options. compile options not finished yet and require testing