move module initialization into functions, notate public methods