Added documentation with Doxygen. Implemented convergence tracking that doesn't work yet.