added a ruby wrapper program and cleaned the tmp directory