Fix newlines in in-file copyright notices.
DRY refactor.
Update todo list.
Check if header exists before applying new header.
Fix list index error on search for existing header.