Moduli spaces in heterotic string theory