fixed bug for epub export #755 ; also better metadata title
Merge pull request #771 from tcitworld/refactor

fixed bug for epub export #755 ; also better metadata title
merge refactor and dev
Merge branch 'refactor' into dev