Custom query function implemented and working

New class files query,queryDialog and QueryDisplay
Minor bug fixes