Initial commit of the export function for projects only. Quote a few trailing spaces removed as I went along.