Added a disclaimer.
Added mention of Apache 2.0 license to README.md for simplicity.
Made main() reentrant by using local vars instead of global readonly vars.
Moved IMAGE_OS to top-level to allow overriding from the CLI.