You always start with the highest priority group (typically the group connected to the chiral center with a high molecular weight atom), then move in a clockwise or counterclockwise fashion from that atom to the second highest priority group.
In doing so the highest priority group must be coming out at you (a "wedge" line) and the lowest priority group must be going away from you (a "dashed" line).
An easy way of looking at it is by always moving from the highest priority group to the second highest priority group; if the highest priority group is not a "wedge," or in some cases the lowest priority group is not a "dash," then you have to think in opposites.
Using the former example given,
The highest priority is OH, and the lowest priority is H. You have to move clockwise or counterclockwise by going from OH to CH3CH2, the second highest priority group. However, since H is not a dash as it should be (lowest priority, review statements above) whatever notation you deem the chiral center the answer will be opposite to that.
Moving from OH to CH3CH3 yields an S conformation (it looks like S), yet it is actually R because the H is not a dash as it should be.
A rule of thumb is when moving from the highest priority to second highest priority, you can always move over a dashed bond or solid bond (just a line) on your way but never over a wedge bond.