made topics code more object oriented, cleaned up its conditions, blocking http requests set to false with timeout added