lotfw: change config param name

from duration to interval
lotfw: change config param section

moves buflines and lastlines to global
lotfw: add per file template
lotfw: add config error check