Added close method to Credentials. Updated documentation.