Removed upgrade readme and updated LICENCE
Added checks around page number calculation to avoid division by zero