Added some functions in mtl.h
Small changes