added gitignore
added clone and extend function
added treatment function serialization