That, I have yet to figure out the answer too as well. I'm thinking you need to start with a stable base. If you can remove every single bug while the code is fresh in your mind, then you can just continue working on to it, adding new features and you'll continue developing it till you're happy with the result.