Added option to write encoded or decoded string to .txt file after encoding/decoding