Add setCredentials method to allow reuse of store credentials.
Whitespace correctness
Code clean-up