Updated pwx file and learning to write an xml file. Ugly stuff