Fixed bug in VEGAS and performed testing