implemented printf and clock tick functionality