fixed bug, tested working code, updated README