code cleanup: removed unused code
make smart indenter respect actual start line of the list
code cleanup: add more comments, rename methods