they eat left over food that hits the bottom. you could use sinking pellets if you are concerned about them getting enough food. a few of them in a tank won't need much target feeding, but 20 of them in a new tank will definitely need to be fed.
i believe when they crawl up the tank walls like that they are searching for food. they generally stay in the sand bed for protection otherwise.