adopt local function in stead of .First function. Some small changes
Merge branch 'master' of https://github.com/TobCap/R