more documentation for unmarshalling
added settable file encoding