Removed some console logs. Added base64 encoding of files