implemented Base64.decode, refactored and documented