Fixed local compilation, and installation for R package and Python package. Modified the according documents.