Update README and fix bug in flattenConcatenation