Cleaned up formatting

Removed spaces between keyword "function" and opening bracket and so on...