Output file function added

constraints and orders created