Fixed Encryption

Fixed Encryption and file save path.

See issue #1