Close #29. Fix #16. Added time_precision to write calls