To create a braid first enter the number of strings you wants. This program can handle 3 or 4 stands only at this point. Then enter a string of letters as described in the program to create a braid with the crossings you desire. For example, with 3 strands "ayayayayay" makes a standard braid.
Every braid can be made by crossing adjacent strands. For more information about the math of braids see here: https://en.wikipedia.org/wiki/Braid_group