Alpha post type rename fixes 248

applied all the fixes discussed and also included a flush of the rewrite rules with the post_type name change when changed also made the whole document Wordpress code standards compliment