XML read and write supported and #26 fix

XML read and write supported, #26 fix and ModelHelper exception type changed from MathException to ParseException.