Second revision of indent feature

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