check options and do some refactorings
compute indent width at displaying result
change result format to markdown