Added signal handling and exit function
Fixed merge and added gitignore