minor fixes; added stats and dat.gui libraries