link extractor added, test bugs fixed