documentation for autocomplete directive and removing old versions of code