added comments to all methods, removed some stale code from pet.rb