Added modules: init, finalize, and is_init'd
Implemented the calling of init and finalize