Fix/name

there was an error with producing different files it was producing always both formats rather than format required , it has been fixed as well as added xml format as well as option of choosing name (Mr.Antoine said it would be useful)