added some edits for loading from xml, need to add start and end nodes on load.