Fix typos in ability.rb
Add fields to Documents and add ability checking

Closes #25