I find this picture a good point of reference to make it clear how a 7th edition army is built:
Detachments and formations are not written in the
BRB because they are each army-spesific. each army has its own formations and detachments in his codex (and some can be found at various supplements) with their our restrictions and benefits
A detachment is very similar to the regular chart (nowdays called the
CAD-Combined Arms Detachment. the 1-2
HQ, 2-6 troop 0-3 elite/fast/heavy old chart), you get X
HQ, Y trrops, etc. however, it might not be the same count as the
CAD, you may have extra fast and less heavy, or tons of troops but less elites. they also have their own benefits compared to the
CAD.
A formation is
usually rather restrictive in it's unit count. for example, a tau optimized stealth cadre requires EXACTLY one unit of ghostkeel and two units of stealth suits. others have more leeway, like the space marine first company task force requires 3-5 units of any combination of terminators, assault terminators, sternguard and/or vanguard. the formations tend to have stronger, more custom fitting bonuses to compensate their dedication. much like units, not all formations are born equal, and some are better than others.
A "decurion style" formation is a unique type of formation that instead of being composed of several units, it is composed of several other formations. these are intended to create a whole structured army, such as a marine strike force, a tau continget, etc.
Now, do you HAVE to use them? usually no, but harlquinns sepsifically are formation-only, as they got no
HQ and canno't forfil the requirements of the
CAD, and have no detachment of their own. though they were never intended as a stand-alone army, but to join a bigger eldar/darkeldar army.
You will however need to understand, even if you opt to avoid formations and detachments, it means not others will do the same. many times the army-spesific detachments/formations will be more beneficial to the army than the generic
CAD is, as it compliments them better.
Also, 2000 points is FAR too big for someone not well versed in the game. you'll just get lost. I suggest starting far, FAR smaller and building up.