fixed some problems with the pwgen def
A little cleanup and successful test of mkAD()