Refactored authentication method. Specify auth file in absolute path (useful for task scheduling).
Fixed Issue#1 and some clean up.