add logging package
add logging package
better debugging info
add open/close debug
change debug to debugf
Merge pull request #7 from xiangli-cmu/master

add logging package