added timestamp to output, added deletion