Added settings page and changed the way that plugin handles options