Edit comments add constant

I gave a different comment for the spawn function. I also added a few
more comments. Finally I added a constant for update time.
Added constants

Adding many constants