Serialization of classes, fixed constructor code

Json serialization and deserialization of data classes
Fixed constructor code
Created copy constructors
Fixed builder classes declarations