Change flatten option API
Tests for flatten option API change
README for flatten option API change
v1.0.1