Fixed several bugs

Not everything was logged to output file when using -o
--fingerprint didn't work when used in combination with --header