added history interface, saving query history
removed old class
added Buffer size constant to interface