now it can write two types of RAW files
update for deleted class
main processing packeg into function
removed useless class and processing packed into function