Modified cog.html so it could be better used as a template...

... for multiple cogs. Some more tweaks may be needed.