Added astylerc and pre-commit hook

This PR adds a `astylerc` file for formatting with astyle.

I'm not sure whether to add a pre-commit checker or something, too.
Seems like this line produces a newline at the end of the output file.
Running diff afterwards yields a non-null result...