corrected echo statement typo
added documentation