Syntax fixes.

I really liked simplicity and abstraction of your library and i think i will use it for my purpose. I read the code, and did some small syntax fixes, merge if u agree on the coding style.