Made some changes
Added comments
Removed getintcolor
More comments