mthread library examples added

Also mthread license and readme documentation was added.