Add config file
Use config package and remove redundant code
Remove redundant code
Use config package for lead.go
Initialize error variable