Doxygen comments in
Rewrites to old wallet file correctly
Doxygen comments