auto detect source file mode
Fix html exporter error
Merge pull request #75 from zpd/master

Fix html exporter error
Merge pull request #70 from ghost/auto-detect-src-mode

auto detect source file mode
merge updates from renard