Fixed null memory access for main
Added sample config file and executable
Fixed null pointer access for config files