update replace function
add 'findMatchingBrace' function
remove automatic 'beforeEach' test
update regexes
update splice function to separate unknown blocks
add more globals for inline tests