tested on local machine
added star_mass in header of output