Applied  github pull request #2 and fixed spelling error