added logging
fixed issues in folder creation algorithm that would fail on illegal characters. the algorithm is now also checking the content of the parent for whether a folder exists, rather than querying the device.