Add types in code documentary

This is useful for modern IDEs to provide code completion.
Merge pull request #48 from cbergau/master

Add types in code documentary