flush hooked

connected to #1

Problem is that with this code the rules are NOT flushed on first save of the CPT post(_type) but ONLY if you click "the button" again (Update) to update the post.
I don't know why flush_rewrite_rules() does not fire on the normal first save.