Yaml reader refactoring

This fixes #2 (Library generation from Yaml), fixes #3 (Library generation from CSV) and fixes #4 (Library generation from data in a SQL database)