code formatting + documentation