what line go's where?

... One thing I noticed is that after pumping up the peddle and after letting off, the master cylinder was hissing from the cap and some not a lot of fluid was seeping out under caps. ...
A big clue, and a common problem. Remove the cap and watch in the reservoir as a helper presses the pedal then releases. Do slow at first since you may get a geyser of fluid coming up, which is a strong indication of air in the system. The only exception is if a rubber hose is expanding and retracting, but that is uncommon and quickly leads to a blown hose, the same as an artery rupturing from an aneurism. The only other exception is if drums brakes have the self-adjusters way too loose so that the shoes move too much. I assume you installed the "L" adjuster on the left side and "R" on right. Calipers don't have a spring retract on the pads, instead the piston moves just slightly as the square O-ring rotates. If you see the geyser, bleed and bleed again. You must pump an MC pedal at least 50 times to sweep all air bubbles out. Your caliper and cylinder bleed screws must be at the top to vent air.