setFlags method implemented in ComputeObservables and corresponding modification made in main_libmode_alt.cpp