fix bug in peer handling, add gitignore