custom functions, duplicates and variables left
Merge branch 'master' of http://github.com/puconghan/plt