added city part factory
fixed compiler warning
fixed error in data
various city and R factory enhancements