Finished the checker, I tested on some of the larger valid arguements, the applying forward open leaf needs a little tweaking though.