Added print to file functionality for ref stars