Add deletion of lists and fix bugs with list creation.