Fixed include file, added thread example, cleaned up thread class.