added paperclip gem
scaffolded documents and nested under batches