refactoring

split Decode and Verify into two methods; created separate class for
Base64; misc changes