fixed bug in query method
added IndexManager
added QueryBuilder
added QueryBuilder tests