finished everything but autocomplete debug and doc