removing unrequired public calls.
moving Qcommon and refactoring SV_MAIN