Remove "switch" from "get_item_value", etc.

Changed "get_item_value" from using a switch statement to using if-else
statements. Also made minor adjustments to some constant values, etc.