conditional build based on flags
update README and add CHANGELOG
update documents