Adding tests related to predicates and repetition
Updating printree
Minor changes in lpcode.c