read will now read encrypted and unencrypted files. Need to pretty up code.