Initial commit for surface energy error correction
Bug fix in energy and mu outputs

Due to difference in the keys of result and res, there is a change in
the order mu and energy outputs when compared to concentration output.
New dictionary using the keys of res are used for storing mu.