Add the file type verification to the file
Add the model specs for the document type
Fix some errors in the document controller specs