changed to 'mismatch'
added more tests
clean up
cosmetic
doc