Improvements to physics calculator

Also contains initial code for liquid elements