changed default post configuration directory to /posts
generalized file deletion and improved directory structure