updated xpp and matlab templates