updated documentation
support boolean flags, closes #13