Removed whitespaces infront of colons, added space after function's braces and before the opening curly brace, other formatting changes.