Added config files and robusted the scripts some.