fix bug: close input stream after reading
fix bug: null pointer exception
Merge branch 'vint_dev'