index: includes .dot files; fixes #4
adds test cases; #4