Added comments
Added build script
Fixed bug: thread was run, not started