[bin] reimplementation of vm5k
[lib] removing unused imports and improving some output