Fixed bug in document loading
Merge pull request #31 from lwhsu/master

Integrate Travis CI