Some documentation and optimization

Add documentation to more forth words.
Remove unnecessary compares from compare words