Add some m4 files
Update rank method in newword
Add template file support for dependency parsing