Further implementation of caesar.py and minor change exception change in encoder.py