Fixing tag bug caused by directive loaded twice in index.html, plus other formatting things.