Added comments and some other fixes.

Removed previosGuiID = 0; in the setup() since by default it it equals
to 0 anyway.