Some code cleanup, top-level README, some documentation added to datasource and database modules