Added function stubs and a whole lot of notes to bug model.