added function stubs and comments