Renamed Exception class to uppercase
Refactored var class: renamed to Value, plus minor changes to main function