added readme - inaccurate at the moment.
added grep function to query.c for testing