AES mode option

Added mode option to aes