Template styling and file restructuring