replace deprecated commands by recommended alternatives.
  \rm -> \rmfamily
  \bf -> \normalfont\bfseries
Add scrhack package to fix incompatibility between KOMA and other packages (e.g. float).
use xcharter with native smallcaps.