Export Threads module at a higher level.
Added a Makefile.
Added a default configuration for threads.
Removed the use of result type in threads.