enabling detailed error logging

first commit is only removing trailing whitespaces (textmate plugin).

the second commit is the actual code. made it via 2 commits to make code-changes clearer