Adding file size checking

Ensure output is smaller then input.

Proposed fix to issue #7.