added missing config in installer.
removed close + added verbose.
added debugging.
fixed some method declaration.
optimized some queries.