formatting fix.
More docs!
type checks for the lib.
terming off security.