updating Documentation

cleaned code a little
made updateLocation() able to handle "any" object