changed the gen_pass method; pwgen no more needed