Some documentation added.
Minor improvements.