added scanner class for generate structure files