update global gitignore file path
add section title
update output management for better error handling