just some notes and converted some fprintf() calls to either SHC_WARNING() or SHC_ERROR()