added type checking function args
merge
Merge branch 'master' of github.com:niketkandya/plt2013