clean up old functions
update function comments
remove image preloading
update comments at beginning of file
remove unused variables
change constant names
update constants names
change order of constants
update order of variables