add name to Sites, modify svg plot to fix problem in firefox
clean up and direct debug to cerr instead of cout
add missing break statement and add `where' statement optimization