whitespace cleanup only
remove unused methods
avoid code duplication
small re-formatting only
add support for checking  text with markup, assuming the caller knows how to split the input into plain text and markup (sourceforge issue 41)
improve test