Refactored thread model and controller to be more semantic
Added comments to threads