Added functionality to CRUD materials, and rent/return materials