added set functions and documented.
 documented.
documented.