Update object.py

added comments to each function (didn't go through line by line in functions but for the most part that is already commented . . .)