added comments and logic to update TP page with included files