renamed all functions in class.php to remove pigeonpack_ (not needed), added delete post check