simplify deserialization code;
add first version of documentation;