rewrite main, delete old files

use html page rather then python module