Update comments and cleared generated_stylesheets

Updated the function comments to better describe what the function does. Also added a line to clear the generated_stylesheets array cache when the tags are removed. That way they can be added back later without failing during the cache check.