added MapleData value conversion functions and updated the example