1) Added arbitrary alphabet through command line flag.
2) Segregated encode and decode tests.