add docopt tests.
fixes validate function.
add ignore-empty option.
add test for validation
fixes options.must be -n or -p
fixes validate function. if no files, add stdin.
fixes test.