Fixed typos and errors
Added buildRealmIDList