corrected define names
flush rewrite rules on activation/deactivation, and when options are saved
first version of template file
formatting
formatting