added error checking to prettyPrint in monotonicmap for boolean switching