Implemented and tested initialize modules. Closes #212. Closes #213.