formatted log as TSV and some refactoring
updated doc