Documented some functions and varianles.