replace all instances of "$*" with "$@", use "$@" instead of $* where appropriate

Fixes #86.