TOR + version fix

Updated and cleaned up code as well as changed the default port from
24494 to 24242