added printing for '#' functions and named variables