first updates, working on MainClass and saving environment state