Added comments on functions, removed non-working "cookie" code, removed script added by hosting site that was creating unwanted advertisements.