fix R_localMaxima call
cleanup demo files
cleanup man pages