refactoring and cleaning source code; qcintl module