Remove vignette

Remove vignette for fast compilation.
Will add back for stable version.
Fix a bug

Fix a bug for the case that input argument is a scalar.