Implements tags, various fixes and style changes.