added support for booleans, better documentation