Add ability to set logfiles and loglevel. Add gitignore.