Syntax and Parsing changes

Changed " to ' to stay consistant
Changed method in decoding encoded XML