option to pass key and secret as parameters (fixes #3)