Correct indexing and attribute settings for Realm
Added primitive filtering for stops.txt