fix c_p, c_v computation
add tests for model, some cleanup