Implemented threads, peercommunicator is finished

(Hopefully finished) haha.