Greatly simplify the parser at the expense of a longer main
htm: remove another round of useless variables into htm
trim a lot of useless stuff and make htm instanciable, no more singleton