BoolVector issue fixes and general cleanup and repairs. Thread pool race condition fix.