Merge pull request #83 from PlumLabs/sc/new_edit_document

Integrate barcode with document
Add condition to reference in document model
Add some changes in document view