added escape function for prettier printing of patterns... -sai
removed debug printing and fixed bug by getting curr and next at the beginning of Expression function and the while loop inside... -sai