Add fromCredential

Add docs to makeCredential