Remove require before the package is uninstalled.
Tidy up the write and remove require methods.
Handle updates (delete the auto require before updating, then recreate). Some inline doc tidying.