Added code to write posts to nested directories.
Removed the post folder nesting until variables for folders are introduced.