Logical reordering of internal API
Added simple key distribution sanity check.
Documentation sync