Added custom post type library and post saving