Modernized reg2str usage, modernized or and xor
Implemented arrays and regular expressions. Updated docs