handle naked match
improve warning messages
docs
fix grep tests
add shift test case
more shift test cases