Implemented template. It includes Timer, debugging and read/write stuff