cleaned up pickle script file and added a conf file