added gitignore file
Writing logfiles into separate directory (fixes #1)
fixed bunch of warnings