Refactor constant children handling in indexed fault tree functions.
Update readme with the warning about the documentation driven
development.
Refactor module detection functions in indexed fault tree.
Separate functions that output to standard out from a file.