Fixed some uncanny bugs, added a __repr__ to LogicalOperator