Update c_posts.php

added some documentation and comments