Merge pull request #142 from jasobrown/1.1

adding license header
Avoid recursively calling self; instead call outer class's getCredentials().