you'll learn, bikes have 3 lanes to ride in per lane. center, left of center, right of center. center should be avoided as much as possible.
as said center catches most oil, right of center is where most debris will be, and left of center should be your most traveled lane position. traveling left of center (closest to on coming traffic) gives you the most visibility (to see and be seen), and the most oh shit room to do something, and makes you the most visible. don't watch what the car in front of you is doing. you ride (just as you should drive) by what traffic far ahead of you is doing. if you drive to someone 5 cars ahead of you, you'll catch people slamming on their brakes, and other stuff before the car right in front of you does, and you can ride accordingly. and since your looking past the car in front of you, you'll be able to see their tail lights to know what they are doing as well.
i know very seasoned riders who still lack the common riding sense. always, always travel FASTER than traffic. don't worry about cops, as long as your riding respectable, they won't jack with you. you want to maintain a speed that when you come to a car, you get around the car. you don't want a slow pass, that makes you less visible in a car's mirrors. get up and get around the car. you don't want cars passing you either. they will cut your ass off, forget your there, and then it gets scary.