Solve unused warnings
define  _DEBUG when building a Debug version
Wrong assert macro's corrected
Use default values for limit and teaser to avoid notfoundexception