Updating mlib for stata vers 11
New functions