Cleaned up immixrecord code 
	split up different matches
Cleaned up main code-> main vs run
Also added toXML writers