Built thread options into Makefile, added documentation