Fixed some minor typos and formatting issues

I'll revert it right away ... but don't you think that `ResourceParser` is too fragile if it works in this way?