Added the realization of writing config into xml files; Removed useless command of 'mkdir userdata';