Marks history fix - may have missed some things
message with tests, and removed unecessary code
merge in Marks latest fixes
Issue #4: tidy test case a little
Issue #4: fix for '.' at the end of a substring searched for in the history string