add unzip class and make code nicer

Signed-off-by: Grarak <williye97@gmail.com>