restructured modules
changed interface for password generation