Closing output file properly in Services class.
Variable class now including add and subtract methods.
Animat classes now using Variable.
Fixed get state value in Emerge template.