License changes to mathematics files
- This is the final change needed for the license files, and therefore for #1156 (closed).
- Also made some changes to the mathematics files to improve consistency. There are a lot of files there though, and it takes a long time to go through them.
- Further changes will be made in subsequent commits.
Closes #1156 (closed)