Major update, now allows 2-pass encoding

Tell me if I broke everything.