Add VGC and LC flags to statcalc

also fixed small bug