I have looked at the uploaded pdf and I do not see an issue with the code in it. I'm not sure if pdf doc would show the issue or not though. I think it would be best to see the original files, if you can post back with both files referenced in the errors I will take a look for you.
To upload the files you will need to have then in a zip archive, you should be able to do this by right clicking on the file and choosing the 'send to zip' selection. You can then open up the zip archive to add other files if needed. Please post back with these so we can take a look, also I just want to confirm that you are getting the form to go to the thank you page and the email is sent correct?