Added install function that flushes rewrite rules