fixes after review: namespace, memleak, timestamp format, CLOCK_REALTIME