refactor code easy to read.
add static files.