fix exception handling when creating a post type plugin
added very basic docs