added documentation; corrected typo