Added Set-Credential and improved Security Module