Implement discard in terms of keep. Clean up docs.