Remove debug statements, check if file already exists
Add trailing slash to header link