Fixed trailing whitespaces and removed useless ?>

Do you guys accept pullrequest? Because I might be having a lot of them for you.