adding documentation and fixing typo