Added values function, fixed putAll method still getting errors with pass by reference on putAll