minor performance improvements and fixed README.txt spelling mistake.