Added documentation (DoxyGen)
Added serialization.
More comments.