base 64 ser/des reimpl, adding some comments