Added (de-)serializtion to and from files and byte[]