Merge pull request #2 from vobe/master

More updates
Fix uninitialized pointer in command handling code

Several instances of a variable not being initialized, and then tested
for nullity