preserve the OptimizeResult
add a test for the newton solve
evaluate enthalpies more efficiently
add fortran source for a test