Cleaned up Code, better documentation
Cleaned up extraneous example code that made understanding the classes more difficult. Added comments to all functions to better explain them. Added example db.xml to show how tables are linked for examples.
Fixes #2