first commit on branch

Added json serialization
second major commit

Added logging
Added correctly double serialization mechanism