For your teams question, you can create teams using the /scoreboard teams add <team> command. For example:

/scoreboard teams add TeamName1
/scoreboard teams add TeamName2

You can then set their colors using /scoreboard teams option <team> color <color>. For example:

/scoreboard teams option TeamName1 color blue
/scoreboard teams option TeamName2 color red