Combining the pulse and smile detection. Writing the results to an xml file.