Added the rewriting of all files.

- Added a substitutors templating system.