Minor changes for the logic sim and Printing results