WIP - clarified the state module and the library module