add allocFilename
add svaeToFile and fix bugs
add remove none html from todo list