bug fixes and added a new from_xml() function to STIXPackage()