Updated documentation and README, minor fix in query.