Remove commented code, add documentation for setting up the adapter