Minor fixes and validation

Responds to failure to read file and checks for correct amount of
arguments before it tries to read. Min file size subtracted by 1 because
on linux systems the last byte seems to be truncated in the size.