cleaned up terms, input syntax for iterated operations, made output syntax match