that's a project....
You'll need to get and or download a service manual, that'll get you started in the right direction. It'll show you how to set the points, adj the timing, the valves and adj the cam chain, check the float height (look up clear tube method) and adj the idle mixture and sync the carbs, then you can set the idle. If its still idling rough, then you can look for vaccum leaks, check the intake spigot o-rings and carb clamps. Also, Its got those pod air filters, so your gonna have to pull the carb rack eventually either way and find out what kind of jetting you've got there. Once you've reached that point you may as well tear the whole rack down and clean the internals and replace what ever o-rings need replacing. You more than likely have dirt and contamination in there as well. Good times ahead.... ask questions as you go. If its a '77, you've got a 75-76 gas tank. Can't believe you rode 250 miles on those tires. You gotta be a youngster....