restructured QTScope includes
fixed spelling error and removed unneeded code
fixed warning regarding typedef
fixing more warnings during compiling