base64_convert: Enhancments and bug fixes. Added flags to contol processing