Fix doc block formatting
Refactor asserts
Make GIN index creation to use Index objects