Updated List creation to create blank list instead of nil and added checks when writing a list for consistant types
go fmt
Removed redundent import
Fixed missing return value for idFromData in List.WriteTo