Tidied up

Sorted why my Qt was bugging out and hence was able to clean up compiler
errors etc.