typo/bugfix
lots of bug fixes on VOtable writing script