Algorithm's now working in all instances. Added function to extract the RoomAssignment to a xml file.