Added base thread network code. Will collaborate with Anna Dining later to get fully finctional.