adding handling for attachments and the inherit post_status

fixes #85 and possibly #78