rename main function and make it agnostic to how it is run
add Imaris XML header