Timer added. Few corrections made to the kernel