Gravar-mail: Second-order topological insulators and loop-nodal semimetals in Transition Metal Dichalcogenides XTe(2) (X = Mo, W)