Added base64 decode function.
Converted tabs to spaces.