added createFolder and updated writeContent to support creating new cont...

...ents