fix script syntax
refactoring a bit
readme
tested run directly
improve docker invocation