Fixed complex object names
Automatic directory creating added