Added the ageing model building and testing code - include impl. of regression
Improved some of the appearance model buidling code