guicompiler improvements: latex modes, file naming conventions, settings, and restore open documents