refactored config into multiple files and added tests for buildReceiveFn
refactored config for github and tests
mute error logging