Added method to update keyspace rep factor, added method to find current rep factor, added loading bar, improved threading by adding exclusive condition for deadlocking in the TOR thread.