changed displayTimestamp, now returns a String instead of using
system.out