Empty space on top of the page
I found the error in the second module: It was because the opening &lt;?php tag had a tab before it.

I fixed the second module, too. I don't know which produced the empty space, but I created for every file I used a new file and pasted my code into, renamed the module and enabled it. Everything now works.