initial commit of encounter histories script