Standardising code style

Hey Addy,

This PR checked and standardises constructor and module pattern chapters.

About standards, I notice you pad the parens when calling functions, but there is an inconsistency in calls where the parameter is split into multiple lines. I've seen both examples below used in samples, which do you prefer?

```
fun( {
 hello: world
})

fun({
 hello: world
})
```