refactored argument handling as described in #425
remove arbitrary numargs limit
fix memory errors (d'oh)
fix argument handling for cmd_add