various fixes
Merge pull request #19 from jlsherrill/master

adding ping operatin and other various fixes