added --config option for manually specifying the configuration path, related fixes for retrieving configuration information in forward.py