bug fix: Only the filename can optionally be passed into the save function. Now saves in pretty xml format by default.