added support for functional selectors
updated README slightly