added *default generate() function* to Password class and started on event hooks. [Compiles but does not run properly]