Add class getDocInputFormat
Merge branch 'test' into flags