Complete Thread Implementation

Finished implementing threads