Refactoring code base.  Reparing roxygen manuals.