remove duplicate params and add comma after args

fixes #682