add get method and fix bugs related to checking object references for equality rather than objects themselves (d'oh...it's been awhile, Java)