Fixed typos (Retrieve was spelled Retreive, my mistake).

Tested about half of the queries and changed the return types to Material or List<Material> if the query might return multiple materials.

Added "TabChangeListener" so if you need to init the tab when it's selected, check that out.