solved a number of bugs and added two conversion constructors for QT types
solved a number of bugs and added two conversion constructors for QT types