Changed some dog code, renamed sample packaging and implemented actual callbacks.