Just some improventes

Hi

I was thinking about writing an API just like yours and found you @ github. This is my first (very simple) contribution, I'm already working on some real code!

Regards