Complete overhaul: standalone project with comments, ready for adaptation to other cities.