Added if clause to prevent fatal error if no primary key is given.
Made sure that pageParent has always an integer as value.
Last modified is now imported.
Last modified of the wordpress post is now used.
Contents are now added to the uncategorized or pages category where appropriate.