Second revision of indent feature

I improved the indendation to deindent the end of blocks and to detect blocks better. Also implemented the indent-region.