MainApp class singleton added. NewStructure class now working with relative paths.