Several updates including adding config.R and kdfunc.py.