Check for file size

fix for #151