Fixed output error and added possibility to lower bound on log dates