Added multiple query, added external bootstrap switch libraries, further reformatted the code, fixed timewindow implementation