Split interface fuctions into separate file
Add edit, optimise and output windows
Get working output and editor windows