Added logfile handling, added branch and limit values to configuration