Document container methods; fix Flatten implementation