fixed memory allocation bug that resulted in undefined behavior and added input file to the config file