Renamed execute function
Added function to check for availability of credential helper.
Refactored into separate files.