fixed crash for empty database
added Ben's documentation and added .md extension to README so github is less confused
bump