Replaced cmd with rawcmd and new case-insensitive cmd. Closes #2