Trap log-0 exception for some valid data
Removed unecessary cleanup
Test for empty file
remove diagnostic print
Suppress output for invalid data
Added new testing cases
Changed to argparse