typo fixed. disclaimer added.
document functions