add mode
chmod
Merge pull request #696 from tjcsl/master

merge dev