new base64 decoding function implemented + minor fixes
merge conflict because of commit amend and push gives conflict