Small bug fix

Generate trend cubes corresponding to stratigraphic depth and twt.
Fixed some bugs in xmlmodelfile.cpp.