Add `addModule` method. Also change code style.