library example, relational fields

changed the field functions to apply on library model
added library module
information about relational fields + example