added LAMP flat file construction and merged file construction codes