1) refactored code

2) fixed bug with interpolate
1) added helper function to xmlnode

2) reading physics properties from xml file
1) using materials for restitution
1) refactored code
1) refactored code

2) fixed bug in physics interpolation for smooth rendering