fix some decref problems, and add new -t and -b switches, renaming the o...

my first pull request. thanks henry for the cheat sheet.

i would normally commit the decref fixes as a separate pull, but i'm going to walk before i try to run.