Some simple code cleanup.
Better and more prominant rror message when no parameters are selected.