included tests and updated README doc