rename main file, add ifndef judgement on header files