added documentation to functions and script
daily saving