Update vcutil.c

I went through line by line and made changes to getUnfolded that made sense, hoping to go upwards into my program to see where the problem lies