Finished password() and added functional interface

Finished work on the password() function, and added a functional
interface for use when only a single password is needed.