improve readabilty of bracket counting
added a comment to row processor
remove some old commented code
change ps to pass status in a forgotten section