Sorting, expansion model

First sorting of undocumented files, added documentation on the
expansion model