Changed main options from table to wp options

Still need to sort the update out