updated to generating Response object to output; moved
MasterTemplate(header+footer) into separate files;