Minor improvements

Hi! Thanks for creating this useful library.
I fix warnings, remove tab and remove trailing whitespace. 
Could you pull it?

Cheers,

-Yasuyki