fixed typos.
changed return value of getBlocks() method from assoc. array to indexed array. added class constants.
and even more XML generation code.