some code formatting

Just some code formatting:
4 indent to 2 indent, alignment, etc.