First read from db.
renamed the lib folder to models to better reflect its intent.
removed old lib folder.
added a comment.
fixed path to directory.rb model.
working on xml builder.
working on a fix provided by @asalme .
Corrected top require statement to deal with static gems as well as dynamic models.