Improved flag handling, added version number
Updated README.md with new flag information