chore(library/hott) clean up file and add class inference