Implement features which show location and show document

close #2