Removed the 'undefined' text from user prompt; re-organized the export function, nothing major.