changed tty device and fixed some indentation problems in monitor script, updated .gitignore