first try (not working by now)
added docstrings / doctests; removed unnecessary code
Add dbconfig to ignored files
misc