Fix import paths, implement next and Init, fix ErrorList type and add Scan test