fix typos and correct class syntax