add docs, removed @while, detect mixend indentation