fix date to today, fix code formatting