Most functions added, password generation already working.