Two problems in the gravity flow of granular materials