replaced subjects with tags and general bug fix with relationships

replaced subjects with tags and general bug fix with relationships