Added formatted table output

Added a fuction to output the results as a formatted truth table.