Changed [] brackets to {} in system libraries.

[] brackets are now used for tables.
Also brought back the complement function.
Fixed memory corruption bug.