Rewrote rules tab, fixed radio problem, still need to deal with left recursion