clean and upgraded api
added new html test file for example