Fixed update function. Added support of all known formats for encoding. Improved split1 function. By default clean func is not active.