refactored debug outputs to use std::cerr instead of qdebug or printf to be consisten in this project