Ok, I added the level code idea. To create the level code start the function "LevelCode.create" To extract/load the level code start the function "LevelCode.extract". Scripts will be added later but I wanted to focus on the level first. Each part of the level you will notice is called <stage> in the script.
NOW I JUST FIXED THE LevelCode.extract by using XML.parse to correctly parse the code. I also added WIP text commands. put a command into the variable or the function both named "_>"