Explained second code snippet, added heading for base64 solution.