changed name of setVal and getVal to be consistent wiht java code: setValue and getValue. Added handling in SAtoHM to check if key already exisits, if it exists overrides previous value.