Using str instead of a declared variable for majority

Signed-off-by: Sam Kleinman <samk@10gen.com>
minor: updating gitignore file