fixed error when there is an incomplete xmll file
added doc string
removed commentd code. fixed a stress error if there is no stress