fix nested ref bug and add unit test coverage
remove comment from readme
Merge pull request #7 from 0xor1/dev

dev -> master