Added some basic documentation. Doxygen support coming soon.
added free energy computation (needs more testing).