Added option to get username/password from XML

Added option to get username/password/working directory from the config
XML