update composer.lock
refactor to single command tool
change default output folder to system tmp directory
add comments
small refactoring