uses biblioteca.domain.Material.id attribute instead of subclasses id (cid, lid, rid, etc)
cleans unused comments and refactors exceptions and some variable and parameter names