Please refer to this. Everything is mentioned in detail. Also make sure the brake fluid reservoir never runs low on brake fluid while bleeding it since it can suck in air. Placing a brick underneath brake pedal is a good idea to prevent flooring the pedal.