added creation of main function to cdumper