updated comments regarding command input checking