Extract published date from file name
Add date to file name when publishing draft
Fix bugs with reading and writing data