G2G:Its still God who put the names in; He decides.
Based on what?
Don't tell me you believe in predestination......
So if God decides, then why work?
When each dies, he stands before God in particular judgement, that is, one on One between him and God. It is then that God decides whether or not one is worthy of Heaven, as with a martyr; goes to Purgatory, then to Heaven, or, sadly to hell. This is based on the Judgement and Mercy of God. For the part about the book, check out the rest of the post. At the end of the world will be the general judgement and the Resurrection of the Dead.